
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName()+ path+"/" ;
%>
<!DOCTYPE HTML>
<html>
<head>
    <title>Orap 授权登录</title>
    <base href="<%=basePath%>"/> 
    <meta name="viewport" content="width=device-width">  
  	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />      
  	<link rel="stylesheet" type="text/css" href="css/templatemo_main.css">
</head>
<body>

<div class="row">
    
    
    <form class="form-horizontal templatemo-signin-form" role="form" action="oauth_login" method="post">
        <div class="form-group">
          <div class="col-md-12" style="text-align: center;">
              <img src="images/logo.png"></img>
          </div>
        </div>
        
        <input type="hidden" name="client_id" value="${param.client_id}"/>
        <input type="hidden" name="scope" value="${param.scope}"/>
        <input type="hidden" name="response_type" value="${param.response_type}"/>
        <input type="hidden" name="redirect_uri" value="${param.redirect_uri}"/>
        <input type="hidden" name="state" value="${param.state}"/>
        <input type="hidden" name="client_secret" value="${param.client_secret}"/>
        <div class="form-group">
          <div class="col-md-12">
            <label for="username" class="col-sm-3 control-label" style="text-align: left;">用户名</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" name="j_username" value="" placeholder="Username" required="required">
            </div>
          </div>              
        </div>
        <div class="form-group">
          <div class="col-md-12">
            <label for="password" class="col-sm-3 control-label" style="text-align: left;">密码</label>
            <div class="col-sm-9">
              <input type="password" class="form-control" name="j_password" value="" placeholder="Password" required="required">
            </div>
          </div>
        </div>
		<div class="form-group">
			<div class="col-md-12">
				<span class="col-sm-12" style="text-align: left;color:red;">
					<c:if test="${not empty oauth_login_error}">Login failed</c:if>
				</span>
			</div>
		</div>
        <div class="form-group">
          <div class="col-md-12">
            <div class="col-sm-offset-3 col-sm-9">
              <input type="submit" style="float: right;" value="登录" class="btn btn-primary">
            </div>
          </div>
        </div>
      </form>
    
</div>


</body>
</html>